package demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-28
 * Time: 12:20
 */
public class Demo01 {
    //匿名代码块
    {
        System.out.println("执行匿名代码块");
    }
    //静态代码块
    static {
        System.out.println("执行静态代码块");
    }
    //构造方法
    public  Demo01() {
        System.out.println( "执行构造方法");
    }

    public static void main(String[] args) {
        Demo01 demo1 = new Demo01();
        System.out.println("=========");
        Demo01 demo2 = new Demo01();
    }
}

